//
// Created by Felix on 24-5-11.
//

#ifndef GAZE_USERUPDATEPASSWORDDTOVALIDATE_HPP
#define GAZE_USERUPDATEPASSWORDDTOVALIDATE_HPP

#include "service/UserService.hpp"

class UserUpdatePasswordDtoValidate {
public:
    static bool validateRequireUserId(
            UserService &iUserService,
            const oatpp::Int32 &userId
    ) {
        if (userId <= 0) return false;
        auto user = iUserService.getUserById(userId);
        if (!user) return false;
        return true;
    }
};

#endif //GAZE_USERUPDATEPASSWORDDTOVALIDATE_HPP
